package com.ss.android.common.download;

import android.content.Context;
import android.content.DialogInterface;

import com.ss.android.common.dialog.AlertDialog.Builder;
import com.ss.android.j.b;

public final class e {
    private Builder a;

    public e(Context arg2) {
        this.a = b.createDialogBuilder(arg2);
    }

    public final d a() {
        return new d(this.a.show());
    }

    public final e a(int arg2) {
        if(this.a != null) {
            this.a.setTitle(arg2);
        }

        return this;
    }

    public final e a(int arg2, DialogInterface.OnClickListener arg3) {
        if(this.a != null) {
            this.a.setPositiveButton(arg2, arg3);
        }

        return this;
    }

    public final e a(DialogInterface.OnCancelListener arg2) {
        if(this.a != null) {
            this.a.setOnCancelListener(arg2);
        }

        return this;
    }

    public final e a(String arg2) {
        if(this.a != null) {
            this.a.setMessage(((CharSequence)arg2));
        }

        return this;
    }

    public final e b(int arg2, DialogInterface.OnClickListener arg3) {
        if(this.a != null) {
            this.a.setNegativeButton(arg2, arg3);
        }

        return this;
    }
}

